//
//  RW_ItemButtonCollectionViewCell.m
//  SleepApp
//
//  Created by chuangqi on 2021/3/30.
//  Copyright © 2021 RiceWang. All rights reserved.
//

#import "RW_ItemButtonCollectionViewCell.h"
@interface RW_ItemButtonCollectionViewCell ()
@property (nonatomic,strong) UILabel *wlcalss_title_label;
@end
@implementation RW_ItemButtonCollectionViewCell

-(void)bind_row_data:(WLBaseCollectionViewLayerRow *)sender{
    if ([sender.data isKindOfClass:RW_ItemButtonCollectionViewCellModel.class]){
        RW_ItemButtonCollectionViewCellModel *model = sender.data;
        
        self.wlcalss_title_label.text = model.title_string;
    }
}
-(void)bind_delegate:(id)sender{
    
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = UIColor.clearColor;
        [self addSubview:self.wlcalss_title_label];
        [self.wlcalss_title_label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.mas_equalTo(self);
        }];
    }
    return self;
}


#pragma mark -- 代理

#pragma mark -- 懒加载
-(UILabel *)wlcalss_title_label{
    if (!_wlcalss_title_label){
        _wlcalss_title_label = [[UILabel alloc]init];
        _wlcalss_title_label.textColor = HexColor(@"666666");
        _wlcalss_title_label.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
    }
    return _wlcalss_title_label;
}
@end
@implementation RW_ItemButtonCollectionViewCellModel

@end

